extends Control
class_name  RoomItem

@onready var roomIdLabel = $RoomIdLabel
@onready var roomDescLabel = $RoomDescLabel
@onready var joinButton = $JoinButton
signal onJoinRoomButtonPressed(roomData)
var room

func init(room):
	self.room = room
	roomIdLabel.text = str(room["roomId"]) 
	roomDescLabel.text = room["roomDesc"]
	
	
func _on_join_button_pressed():
	onJoinRoomButtonPressed.emit(room)
 
